package com.objection.ObjectSuperClass;

public class ObjectExample {
    private int x;
    private int y;
    public ObjectExample() {
        this(10, 20);
    }

    public ObjectExample(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public String toString(boolean flag) {
        return this.getClass().getName() + ":" + "[x=" + this.x + ",y=" + this.y + "]";
    }
}
